<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    {foreach $row as $v}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$v.title}:</label>
        <div class="col-xs-12 col-sm-8">
            {if($v['name'] != 'score_rule')}
            <input id="c-{$v.name}" class="form-control" name="{$v['name']}" placeholder="{$v['tip']}" type="text" value="{$v['value']|htmlentities}">
            {else}
            <!--积分配置规则-->
            <textarea id="c-score_rule" class="form-control editor" rows="5" name="score_rule" cols="50" data-tip=''>{$v['value']|htmlentities}</textarea>
            {/if}
        </div>
    </div>
    {/foreach}

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed ">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
